package com.hxtec.polaris.entity;

import javax.persistence.*;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "shop_product_sale_attr")
public class ShopProductSaleAttr {
    private static final long serialVersionUID = 1L;
    @Transient
    List<ShopProductSaleAttrValue> spuSaleAttrValueList;
    /**
     * id
     */
    @Id
    @Column(name = "id")
    @GeneratedValue(generator = "JDBC")
    private Integer id;

    /**
     * 商品id
     */
    @Column(name = "product_id")
    private Integer productId;

    /**
     * 销售属性名称
     */
    @Column(name = "sale_attr_name")
    private String saleAttrName;


    public static ShopProductSaleAttrBuilder builder() {
        return new ShopProductSaleAttrBuilder();
    }
}
